package cn.com.dhc.danlu.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.Date;

public class DlCategoryMsg implements Parcelable {
    public static final Parcelable.Creator<DlCategoryMsg> CREATOR = new Creator<DlCategoryMsg> () {
    
        @Override
        public DlCategoryMsg createFromParcel (Parcel arg0) {
            DlCategoryMsg category = new DlCategoryMsg ();
            category.categoryId = arg0.readString ();
            category.categoryCode = arg0.readString ();
            category.propertyModuleId = arg0.readString ();
            category.categoryName = arg0.readString ();
            return category;
        }

        @Override
        public DlCategoryMsg[] newArray (int arg0) {
            return new DlCategoryMsg[arg0];
        }
    };

    private String categoryId;
    private String categoryCode;
    private String propertyModuleId;
    private String parentCategoryId;
    private String categoryName;
    private Integer categoryLevel;
    private String categoryStatus;
    private Integer categoryOrder;
    private Date createdTimestamp;
    private String createdPerson;
    private Date updatedTimestamp;
    private String updatedPerson;

    public String getCategoryId () {
        return categoryId;
    }

    public void setCategoryId (String categoryId) {
        this.categoryId = categoryId == null ? null : categoryId.trim ();
    }

    public String getCategoryCode () {
        return categoryCode;
    }

    public void setCategoryCode (String categoryCode) {
        this.categoryCode = categoryCode == null ? null : categoryCode.trim ();
    }

    public String getPropertyModuleId () {
        return propertyModuleId;
    }

    public void setPropertyModuleId (String propertyModuleId) {
        this.propertyModuleId = propertyModuleId == null ? null
                : propertyModuleId.trim ();
    }

    public String getParentCategoryId () {
        return parentCategoryId;
    }

    public void setParentCategoryId (String parentCategoryId) {
        this.parentCategoryId = parentCategoryId == null ? null
                : parentCategoryId.trim ();
    }

    public String getCategoryName () {
        return categoryName;
    }

    public void setCategoryName (String categoryName) {
        this.categoryName = categoryName == null ? null : categoryName.trim ();
    }

    public Integer getCategoryLevel () {
        return categoryLevel;
    }

    public void setCategoryLevel (Integer categoryLevel) {
        this.categoryLevel = categoryLevel;
    }

    public String getCategoryStatus () {
        return categoryStatus;
    }

    public void setCategoryStatus (String categoryStatus) {
        this.categoryStatus = categoryStatus == null ? null : categoryStatus
                .trim ();
    }

    public Integer getCategoryOrder () {
        return categoryOrder;
    }

    public void setCategoryOrder (Integer categoryOrder) {
        this.categoryOrder = categoryOrder;
    }

    public Date getCreatedTimestamp () {
        return createdTimestamp;
    }

    public void setCreatedTimestamp (Date createdTimestamp) {
        this.createdTimestamp = createdTimestamp;
    }

    public String getCreatedPerson () {
        return createdPerson;
    }

    public void setCreatedPerson (String createdPerson) {
        this.createdPerson = createdPerson == null ? null : createdPerson.trim ();
    }

    public Date getUpdatedTimestamp () {
        return updatedTimestamp;
    }

    public void setUpdatedTimestamp (Date updatedTimestamp) {
        this.updatedTimestamp = updatedTimestamp;
    }

    public String getUpdatedPerson () {
        return updatedPerson;
    }

    public void setUpdatedPerson (String updatedPerson) {
        this.updatedPerson = updatedPerson == null ? null : updatedPerson.trim ();
    }

    @Override
    public int describeContents () {
        return 0;
    }

    @Override
    public void writeToParcel (Parcel arg0, int arg1) {
        arg0.writeString (categoryId);
        arg0.writeString (categoryCode);
        arg0.writeString (propertyModuleId);
        arg0.writeString (categoryName);
    }
}